<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>报表</title>
    
    <script src="../../../../../miniUI/scripts/boot.js"></script>
    <script src="../../js/ColumnsMenu.js"></script>
    <script src="../../../../../js/dateUtil.js" type="text/javascript"></script>
    <script src="../../../../../js/xlsx.full.min.js"></script>
    <script src="../../../../../js/JSONToExcelConvertor.js"></script>
    <link href="../../css/commen.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        fieldset {
            border:solid 1px #aaa;
        }
        .hideFieldset {
            border-left:0;
            border-right:0;
            border-bottom:0;
        }
        .hideFieldset .fieldset-body {
            display:none;
        }
    </style>
</head>
<body>
    <!--控制栏（按钮）-->
    <div style='width:100%;'>
        <div class='mini-toolbar' style='border:0;padding:0px;'>
            <table style='width:100%;'>
                <tr>
                    <td style='white-space:nowrap;'>
                        <a id='searchBtn' class='mini-button' iconCls='icon-search' plain='true' onclick='search()'>查询</a>
                    </td>
                    <td style='width:100%;'>
                    	<div id="importVoucherBtn" style="display:none">
                    		<span class='separator'></span>   <!--分割线-->
                        	<a id='importVoucher' class='mini-button' iconCls='icon-redo' plain='true' onclick='importVoucher()'>导入凭证</a>
                    	</div>
                       	<div id="newVoucherBtn" style="display:none;">
                       		<span class='separator'></span>   <!--分割线-->
                        	<a id='newVoucher' class='mini-button' iconCls='icon-add' plain='true' onclick='newVoucher()'>新增凭证</a>
                       	</div>
                        <div id="editBtn" style="display:none;">
                       		<span class='separator'></span>   <!--分割线-->
                        	<a id='edit' class='mini-button' iconCls='icon-edit' plain='true' onclick='editContract()'>修改</a>
                       	</div> 
                       	<div id="Excels" style="display:none;">
                        	<span class='separator'></span>   <!--分割线-->
                        	<!-- downloadExl（excelExport）(newExcelImport) -->
                        	<a id='ExcelBtn' class='mini-button' iconCls='icon-date' plain='true' enabled='false' onclick='downloadExl()'>Excel导出</a>
                    	</div> 
                    	<span class='separator'></span>   <!--分割线-->
                    	选择列：<input name="sortFileds" class="mini-combobox" textField="text" valueField="id" showNullItem="true" />
                        排序方向：<input name="ascDesc" class="mini-combobox" valueField="id" textField="text"/>
                       <!--  <select id="sortOrder" style="margin-right:25px;">
        							<option value="asc">正序</option>
        							<option value="desc">倒序</option>       
    						</select> -->
                        <a id='sortData' class='mini-button' iconCls='icon-date' plain='true' onclick='sortApply()'>排序</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
   	<!-- 内容区域 -->
   	<!-- 查询条件(搜索框)-->
	<div id="fieldsetBox">
		<form id="form1" method="post">
			<!-- 给fieldset标签元素添加：class="hideFieldset"  就默认不限时查询条件-->
			<fieldset id="searchConfig" style='width:99.8%;border:solid 1px #aaa;margin-top:8px;position:relative;'>
				<legend>
					<label><input type="checkbox" checked id="checkbox1" onclick="toggleFieldSet(this, 'searchConfig')" hideFocus />查询条件(点击可展开/关闭搜索框)</label>
				</legend>
				<div id='editForm1'  class="fieldset-body" style='padding:5px;'>
					<input class='mini-hidden' name='id'/>
					<table style='width:100%;'></table>
				</div>
			</fieldset>
		</form>
	</div>
    <div class='mini-fit'>
        <!--显示数据报表(列是动态获取的)-->
        <div id='datagrid1' class='mini-datagrid' style='width:100%;height:100%;' showHeader='true' align='center' 
        allowCellEdit='true' allowCellSelect='true' showPageSize="false" pageIndex="0" pageSize="500" allowUnselect="true">
        <!-- sortMode="client" -->

        </div>
    </div>
    <!--总和表-->
	<div id='countGrid' class='mini-datagrid' style="width:100%;" align='center' showPager="false"></div>



    <!--引入外部js-->
    <script type='text/javascript' src='js/reportForm.js'></script>
   
    
</body>
</html>